package com.example.team.backstage.web.controller;

import com.example.common.beans.Result;
import com.example.team.backstage.feign.service.SysDistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class SysDistController {

    @Autowired
    private SysDistService sysDistService;

    @RequestMapping(value = "/sys/sysdict/info",method = RequestMethod.GET)
    public Result list(@RequestParam Map<String, Object> params){
        return sysDistService.list(params);
    }
}
